USB: serial: ch341: change initial line-control settings
authorJohan Hovold <johan@kernel.org>
Fri, 6 Jan 2017 18:15:23 +0000 (19:15 +0100)
committerRaspbian kernel package updater <root@raspbian.org>
Sat, 31 Mar 2018 14:54:20 +0000 (15:54 +0100)
commitc3b9bb234d5a2df72d491fc8f570d2ce85bfeeb5
tree94798a0dcbbdfd367b47743b9e493ee06d10301a
parentd652bfe5ec4985abbe9ff438598f98fc453d921f
USB: serial: ch341: change initial line-control settings

commit 7c61b0d5e82bfe29b8dda55745afbf65b6ccc901 upstream.

Some CH340 devices appear unable to change the initial LCR settings, so
set a sane 8N1 default during probe to enable basic support for such
devices.

Also drop a redundant LCR read during device initialisation.

Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/ch341.c